package com.cssnj.portal.domain.admin;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.cssnj.portal.domain.func.GlGnEntity;

import javax.transaction.Transactional;

public interface GlGwJsRepository extends JpaRepository<GlGwJsEntity, GlGwJsEntityPK> {

    @Modifying
    @Transactional
    @Query("delete from GlGwJsEntity T where T.gwId = :GW_ID")
    void deleteByGwdm(@Param("GW_ID") String gwdm);
}
